package org.eden.web.service.impl;

import org.eden.rpc.common.entity.dao.User;
import org.eden.web.service.AbstractLoginService;
import org.springframework.stereotype.Service;

@Service
public class SmsLoginServiceImpl extends AbstractLoginService {

    SmsLoginServiceImpl() {
        instances.put("SmsLoginService", this);
    }

    @Override
    public boolean checkAccess(User user, String req) {
        // 从redis中获取验证码并比对
        String redisCode = "5123";
        return redisCode.equals(req);
    }
}
